
package jtrimet.android.widget;

import android.app.AlertDialog;
import android.content.Context;
import android.content.DialogInterface;

public class MessageBox extends AlertDialog
{
	public MessageBox(Context ctx)
	{
		super(ctx);
		
		this.setButton("OK", new DialogInterface.OnClickListener()
		{

			public void onClick(DialogInterface dialog, int whichButton)
			{
					MessageBox.this.dismiss();
			}
		});
	}
	
	public static void show(Context ctx, CharSequence msg)
	{
		MessageBox box = new MessageBox(ctx);
		box.setMessage(msg);
		box.show();
	}

}
